﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinHBM.Config
{
    public class AppConfig
    {

        private NameValueCollection appSettings;
        private static AppConfig instance = new AppConfig();


        private AppConfig()
        {
            this.appSettings = ConfigurationSettings.AppSettings;
        }

        public static AppConfig Instance
        {
            get
            {
                return instance;
            }
        }

        public string this[string name]
        {
            get
            {
                return appSettings[name];
            }
            set
            {
                this.appSettings[name] = value;
            }
        }
    }
}
